//
//  TQStringWithHight.m
//  beanRecipe
//
//  Created by dlios on 15-10-5.
//  Copyright (c) 2015年 陶琴. All rights reserved.
//

#import "CCStringWithHight.h"

@implementation TQStringWithHight

+(CGFloat)HeightWithText:(NSString *)text width:(CGFloat)width font:(UIFont *)font
{
    
    CGSize size = CGSizeMake(width, 3000);
    CGRect rect = [text boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:font} context:nil];
    return rect.size.height;
}


@end
